package com.s4j.struts.biz.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="biz_li_gywm")
public class BizLiGyvm {
	private Long gywmId;
	private String operation;
	private String operatetime;
	private String fzy;
	private String lx;
	
	private String drugname;
	private String fyjl;
	private String yyqzsj;
	private String zdjl;
	private String tyyy;
	private BizLiTreathis treathis;
	
	public String getOperatetime() {
		return operatetime;
	}
	public void setOperatetime(String operatetime) {
		this.operatetime = operatetime;
	}
	public String getFzy() {
		return fzy;
	}
	public void setFzy(String fzy) {
		this.fzy = fzy;
	}
	public String getLx() {
		return lx;
	}
	public void setLx(String lx) {
		this.lx = lx;
	}
	
	public String getFyjl() {
		return fyjl;
	}
	public void setFyjl(String fyjl) {
		this.fyjl = fyjl;
	}
	public String getYyqzsj() {
		return yyqzsj;
	}
	public void setYyqzsj(String yyqzsj) {
		this.yyqzsj = yyqzsj;
	}
	public String getZdjl() {
		return zdjl;
	}
	public void setZdjl(String zdjl) {
		this.zdjl = zdjl;
	}
	public String getTyyy() {
		return tyyy;
	}
	public void setTyyy(String tyyy) {
		this.tyyy = tyyy;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getGywmId() {
		return gywmId;
	}
	public void setGywmId(Long gywmId) {
		this.gywmId = gywmId;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public String getDrugname() {
		return drugname;
	}
	public void setDrugname(String drugname) {
		this.drugname = drugname;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="treatId")
	public BizLiTreathis getTreathis() {
		return treathis;
	}
	public void setTreathis(BizLiTreathis treathis) {
		this.treathis = treathis;
	}
}
